/*
 * Store.h
 *
 *  Created on: 29.10.2013
 *      Author: ulgish
 */

#ifndef STORE_H_
#define STORE_H_

#include <pthread.h>
#include <SyncWriter.h>
#include <string>
namespace DT {

class Store {
	pthread_mutex_t mutex;
	int curr;
	int maxCount;
public:
	Store(int maxCount);
	bool operator++(int);
	bool operator--(int);
	std::string toString();
	virtual ~Store();
};

}

#endif /* STORE_H_ */
